package com.dc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author: KEYD
 * @Date: 2020/1/19 21:02
 * @Desc: 秒杀服务后台启动类
 */
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan(basePackages = "com.dc.spike.mapper")
@EnableHystrix
@EnableAsync
public class AppSpike {
    public static void main(String[] args) {
        SpringApplication.run(AppSpike.class, args);
    }
}
